package com.example.demo.service;

import com.example.demo.entity.User;
import com.example.demo.pojo.BSResult;

import java.util.List;

public interface UserService {

public BSResult save(User user);

public BSResult checkUserByUsername(String username);

public BSResult updateUser(User user);

public BSResult compareAndChangePwd(int id,String oldPassword,String newPassword);

public User findUserById(int id);

public List<User> findAllUsers();


public User addUser(User user);

public void deleteById(Integer id);

public List<User> findUserByRoleId(int roleId);

}
